const {
  mysql
} = require('../qcloud');

module.exports = async ctx => {
  //   console.log(ctx.request.body);
  let list = ctx.request.body;
  await mysql('video').insert({
    name: list.name,
    video_url: list.vid,
    img_url: list.imgUrl
  })
  ctx.state.data = {
    msg: 'success'
  }
}
